﻿<!-- "script/apps/Aries/Creator/Game/Network/Admin/ClassManager/SChatRoomPage.html" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <pe:mcml>
        <script refresh="false" type="text/npl" src="SChatRoomPage.lua">
            <![CDATA[
            SChatRoomPage = NPL.load("(gl)script/apps/Aries/Creator/Game/Network/Admin/ClassManager/SChatRoomPage.lua");
            SChatRoomPage.OnInit();
            ]]>
        </script>
        <aries:window mode="center_white" style="width:690px;height:533px" title='<%=SChatRoomPage.GetClassName()%>' onclose="SChatRoomPage.OnClose">
            <div style="margin-left:-4px;margin-top:1px;margin-bottom:1px;width:690px;height:495px;">
                <div style="width:688px;height:1px;background-color:#cdcdcd"></div>
                <div style="position:relative;">
                    <div style="float:left;width:480px;height:490px;">
                        <div style="width:480px;height:31px;background-color:#292929;color:#ff9f40">
                            <div style="margin-left:26px;margin-top:6px;"><%=L"聊天"%></div>
                            <div style="margin-left:10px;margin-top:2px;width:56px;height:2px;background-color:#ff9f40;"></div>
                        </div>
                        <div style="width:480px;height:1px;background-color:#cdcdcd"></div>
                        <div style="width:480px;height:330px;">
                            <pe:custom oncreate="SChatRoomPage.CreateTreeView()" style="margin-left:10px;" />
                        </div>
                        <div style="width:480px;height:2px;background-color:#cdcdcd"></div>
                        <div style="width:480px;height:29px;background-color:#e2e7e8">
                            <div onclick="SChatRoomPage.ShowAll" style="margin-left:10px;margin-top:5px;width:20px;height:19px;background:url(Texture/Aries/Creator/keepwork/ClassManager/no_talking_s_icon_32bits.png#0 0 19 19);"></div>
                        </div>
                        <div style="width:480px;height:97px;background-color:#e2e7e8">
                            <textarea name="MessageText" ReadOnly='<%=not SChatRoomPage.CanSpeak()%>' UseSystemControl="true" style="margin-left:6px;height:60px;color:#e2e7e8;"></textarea>
                            <pe:if condition='<%=SChatRoomPage.CanSpeak()%>'>
                                <input type="button" enabled="true" onclick="SChatRoomPage.SendMessage" style="float:right;width:54px;height:28px;margin-top:0px;margin-right:12px;color:#ffffff;" align="right" value='<%=L"发送"%>' class="mc_blue_button_with_fillet" />
                            </pe:if>
                            <pe:if condition='<%=not SChatRoomPage.CanSpeak()%>'>
                                <div style="float:left;width:480px;margin-top:-40px;text-align:center;color:#808080;">
                                    <%=L"当前为禁言状态，暂时不能发言"%>
                                </div>
                                <input type="button" enabled="false" onclick="SChatRoomPage.SendMessage" style="float:right;width:54px;height:28px;margin-top:0px;margin-right:12px;color:#ffffff;" align="right" value='<%=L"发送"%>' class="mc_blue_button_with_fillet" />
                            </pe:if>
                        </div>
                    </div>
                    <div style="float:left;width:2px;height:490px;background-color:#cdcdcd"></div>
                    <div style="float:left;width:206px;height:490px;">
                        <div style="width:206px;height:31px;background-color:#292929;color:#ffffff">
                            <div style="float:left;margin-left:10px;margin-top:6px;"><%=SChatRoomPage.GetClassPeoples()%></div>
                        </div>
                        <div style="width:206px;height:1px;background-color:#cdcdcd"></div>
                        <div style="background-color:#ffffff;">
                            <pe:gridview style="margin:1px;margin-top:8px;width:204px;height:460px;" name="class_gridview" CellPadding="1" VerticalScrollBarStep="24" VerticalScrollBarOffsetX="0" AllowPaging="false" ItemsPerLine="1" DefaultNodeHeight="49"
                                         DataSource='<%=SChatRoomPage.ClassItems()%>'>
                                <Columns>
                                    <div style="width:204px;height:49px;">
                                        <pe:if condition='<%=Eval("online")%>'>
                                            <div style="float:left;margin-left:12px;margin-top:0px;width:48px;height:48px;background:url(Texture/Aries/Creator/keepwork/ClassManager/online_head_32bits.png#0 0 48 48);">
                                                <div style="margin-left:-6px;margin-top:8px;text-align:center;color:#ffffff;">
                                                    <%=SChatRoomPage.GetShortName(Eval("name"))%>
                                                </div>
                                                <pe:if condition='<%=not Eval("inclass")%>'>
                                                    <div style="margin-left:28px;margin-top:-3px;width:16px;height:16px;background:url(Texture/Aries/Creator/keepwork/ClassManager/not_in_classroom_32bits.png#0 0 16 16);">
                                                    </div>
                                                </pe:if>
                                            </div>
                                        </pe:if>
                                        <pe:if condition='<%=not Eval("online")%>'>
                                            <div style="float:left;margin-left:12px;margin-top:0px;width:48px;height:48px;background:url(Texture/Aries/Creator/keepwork/ClassManager/offline_head_32bits.png#0 0 48 48);">
                                                <div style="margin-left:-6px;margin-top:8px;text-align:center;color:#ffffff;">
                                                    <%=SChatRoomPage.GetShortName(Eval("name"))%>
                                                </div>
                                            </div>
                                        </pe:if>
                                        <pe:if condition='<%=Eval("teacher")%>'>
                                            <div style="float:left;margin-left:10px;margin-top:8px;width:70px;"><%=Eval("name")..L"老师"%></div>
                                            <div style="float:left;margin-left:12px;margin-top:10px;width:40px;height:20px;background:url(Texture/Aries/Creator/keepwork/ClassManager/teacher_bg_32bits.png#0 0 8 8:3 3 3 3);">
                                                <div style="margin-left:8px;font-size:12px;">
                                                    <%=L"老师"%>
                                                </div>
                                            </div>
                                        </pe:if>
                                        <pe:if condition='<%=not Eval("teacher")%>'>
                                            <div style="float:left;margin-left:10px;margin-top:8px;"><%=Eval("name")%></div>
                                        </pe:if>
                                    </div>
                                </Columns>
                                <EmptyDataTemplate>
                                </EmptyDataTemplate>
                            </pe:gridview>
                        </div>
                    </div>
                </div>
            </div>
        </aries:window>
    </pe:mcml>
</body>
</html>

